import type {
  CaptchaQo,
  CaptchaVo,
} from '#/captcha'
import { http } from '@/utils/http/index'

/**
 * 获取验证码
 * @param params  CaptchaQo
 * @returns CaptchaVo
 */
export function getCaptchaApi(params: CaptchaQo) {
  return http.request<CaptchaVo>('GET', `/admin-api/system/checkCode/generate?type=${params.type}&cellphone=${params.cellphone}`)
}
